#ifndef QMYTOOL_H
#define QMYTOOL_H

#include <QObject>
#include "qtoolgraphicsscene.h"
#include "../Controller/centralController.h"

class QMyTool : public QObject
{
    Q_OBJECT
public:
	
    explicit QMyTool(QObject *parent = 0);
    ~QMyTool();
    bool SetContainer(QToolGraphicsScene * container);
	bool SetController(centralController* controller);
    virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent * contextMenuEvent)=0;
    virtual void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent)=0;
    virtual void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent)=0;
    virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent)=0;
    virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * mouseEvent )=0;
protected:
    QToolGraphicsScene *Container;
	centralController* controller;
signals:
    
public slots:
    
};

#endif // QMYTOOL_H
